import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//引入reset.css  重置样式
import './assets/css/reset.css';
// 阿里巴巴矢量图
import './assets/css/iconfont.css';
//引入swiper
//分页器和左右按钮
import 'swiper/swiper-bundle.min.css';
//基础样式
import 'swiper/swiper.min.css';

//引入faseclick(移动端300ms)
import FastClick from 'fastclick';
import 'lib-flexible/flexible.js';
import Swiper from 'swiper';
//将整个禁止延迟的操作应用到整个body标签内
FastClick.attach(document.body);

//引入axios HTTP库
import axios from 'axios';
import VueAxios from 'vue-axios';

//所有的路由跳转之后，所有页面的滚动条返回顶部
router.afterEach((to , from ,next)=>{
	//所有组件跳转之后滚动条置顶页面顶部
	window.scrollTo(0,0);
});
createApp(App).use(store).use(router).use(VueAxios,axios).mount("#app");
